-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Completion for Active Record .where queries #526
Conversation
This may also help: Shopify/ruby-lsp#2913 |
Planning on finishing and hopefully shipping this PR during hackdays next week! |
0b09971
to
896ba66
Compare
7077b8b
to
44cbede
Compare
44cbede
to
def281a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. Left some style comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution! This is awesome
Closes: #369
Adding ActiveRecord
.where
completion suggestions.I've chosen to only provide suggestions once the user begins typing the name of the column to filter by. This is slightly different than the spec in the ticket. I don't think the call_node_enter listener can be used if suggestions are to be provided before the user begins typing a column name.
Happy to investigate this further! But I think this can be added as a follow up in another PR since the approach for when to begin suggesting seems like it should be different.
Here are some videos of how this looks!
vscode-demo.mov
neo-vim-demo.mov